<!-- /admin/template/system/codegrp_list.htm :: 2010-02-23 :: hamhaja -->
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
	var container1 = $("div#lay_error_container1");
	$("form[name=insert_form]").validate({
		errorContainer: container1,
		errorLabelContainer: $("ol", container1),
		wrapper: "li",
		rules: {
			cg_code: {
				uppernum: true,
				minlength: 3
			}
		}
	});
});
//]]>
</script>
<!-- 코드그룹 등록 ▼▼▼ -->
<form name="insert_form" method="post" action="<?=$_SERVER['PHP_SELF']?>" target="form_receiver" style="width:550px; margin: 0 auto;">
<input type="hidden" name="g_job" value="config_codegrp" />
<input type="hidden" name="g_subjob" value="insert" />

	<table class="form2">
	<caption>코드그룹 등록</caption>
	<col width="20%" /><col width="30%" /><col width="20%" /><col width="30%" />
	<tr>
		<th class="required">그룹아이디</th>
		<td><input type="text" name="cg_code" class="full required" maxlength="3" title="코드그룹 아이디를 입력하세요.(대문자 or 숫자)" /></td>
		<th class="required">그룹명</th>
		<td><input type="text" name="cg_pname" class="full required" maxlength="64" title="코드그룹명을 입력하세요." /></td>
	</tr>
	</table>

	<div id="lay_error_container1" class="error_container">
		<ol>
			<li>에러 메세지!!</li>
		</ol>
	</div>


	<div class="util">
		<input type="submit" class="button" value="그룹추가" />&nbsp;<input type="reset" class="button" value="초기화" />
	</div>

</form>
<!-- 코드그룹 등록 ▲▲▲ -->

<br /><br />

<!-- 코드그룹 리스트(수정) ▼▼▼ -->
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
	var container2 = $("div#lay_error_container2");
	$("form[name=update_form]").validate({
		errorContainer: container2,
		errorLabelContainer: $("ol", container2),
		wrapper: "li"
	});
});
//]]>
</script>
<form name="update_form" method="post" action="<?=$_SERVER['PHP_SELF']?>" target="form_receiver" style="width:650px; margin: 0 auto;">
<input type="hidden" name="g_job" value="<?=$g_job?>" />
<input type="hidden" name="g_subjob" value="update" />

	<table class="form1">
	<caption>코드그룹 목록</caption>
	<col width="30%" /><col width="48%" /><col width="12%" /><col width="10%" />
	<tr>
		<th>코드그룹</th>
		<th>코드그룹명</th>
		<th colspan="2" width="22%">관리자툴</th>
	</tr>
	<?php if (count($code_group_list)) { ?>
		<?php foreach ($code_group_list as $k => $v) { ?>
		<tr>
			<th class="disabled"><?=$v['cg_code']?><input type="hidden" name="data[<?=$k?>][cg_code]" value="<?=$v['cg_code']?>" /></th>
			<td><input type="text" class="full required" name="data[<?=$k?>][cg_pname]" value="<?=$String->htmlchars($v['cg_pname'])?>" maxlength="64" title="<?=$v['cg_code']?> 코드그룹명" /></td>
			<td><input type="button" class="full_button" value="코드관리" onclick="g_goto('config_code', 'list', '<?=$v['cg_code']?>'); return false;" /></td>
			<td><input type="button" class="full_button" value="삭제" onclick="g_goto_delete('<?=$g_job?>', 'delete', '<?=$v['cg_code']?>'); return false;" /></td>
		</tr>
		<?php } ?>
	<?php } else { ?>
		<tr>
			<td class="empty" colspan="4">등록된 자료가 없습니다.</td>
		</tr>
	<?php } ?>
	</table>

	<div id="lay_error_container2" class="error_container">
		<ol>
			<li>에러 메세지!!</li>
		</ol>
	</div>

	<?php if (count($code_group_list)) { ?>
	<div class="util">
		<input type="submit" class="button" value="전체수정" />
		<input type="reset" class="button" value="초기화" />
	</div>
	<?php } ?>

</form>
<!-- 코드그룹 리스트(수정) ▲▲▲ -->